<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">修改微信配置</h4>
    <button ui-sref="app.wechatConfig" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading m-n">
            修改微信配置信息
        </div>
        <div class="panel-body" ng-controller="wechatConfigViewCtrl">
            <form class="form-horizontal" method="get" ng-submit="editWechatConfig()">

                <div class="form-group">
                    <label class="col-sm-2 control-label">店铺类型</label>
                    <div class="col-sm-5">
                        <div class="m-b-sm m-r-xs inline"  >
                            <div class="radio inline m-r-n">
                                <label class="i-checks i-checks-sm">
                                    <input type="radio"  ng-model="wechat.isChain" value="0">
                                    <i></i>
                                </label>
                            </div>
                            <p class="inline m-n">单店</p>
                        </div>

                        <div class="m-b-sm inline"  >
                            <div class="radio inline m-r-n">
                                <label class="i-checks i-checks-sm">
                                    <input type="radio" ng-model="wechat.isChain"  value="1">
                                    <i></i>
                                </label>
                            </div>
                            <p class="inline m-n">连锁品牌</p>
                        </div>

                 <!--       <div class="m-b-sm inline">
                            <div class="radio inline m-r-n">
                                <label class="i-checks i-checks-sm">
                                    <input type="radio" ng-model="wechat.csId" value="root">
                                    <i></i>
                                </label>
                            </div>
                            <p class="inline m-n">乐鸽</p>
                        </div>-->
                    </div>
                </div>

                <div class="form-group" ng-if="wechat.isChain == 0">
                    <label class="col-sm-2 control-label">店铺名称</label>
                    <div class="col-sm-5">
                        <select name="shopName" class="form-control" ng-model="wechat.csId"  ng-options="item.id as item.name for item in data"  required>
                            <option value="">请选择店铺名称</option>
                        </select>
                    </div>
                </div>

                <div class="form-group" ng-if="wechat.isChain == 1">
                    <label class="col-sm-2 control-label">连锁品牌名称</label>
                    <div class="col-sm-5">
                        <select name="shopName" class="form-control" ng-model="wechat.csId" ng-options="item.id as item.name for item in chainData"  required>
                            <option value="">请选择连锁品牌名称</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">WcID</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="wechat.wcId" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">AppID</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="wechat.appId" class="form-control">
                        <input type="hidden" ng-model="wechat.id" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">Secret</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="wechat.secret" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">Partner</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="wechat.partner"  class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">Secret For Pay</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="wechat.paySecret" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">Is System Config</label>
                    <div class="col-sm-5">
                        <label class="i-switch m-t-xs m-r">
                            <input type="checkbox" ng-model="wechat.isSys" ng-checked="wechat.isSys==1" ng-init="wechat.isSys=0">
                            <i></i>
                        </label>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group ">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="submit" class="btn btn-success">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>




